# coding: utf-8
from sqlalchemy import BigInteger, Column, Integer, String
from sqlalchemy.schema import FetchedValue
from flask_sqlalchemy import SQLAlchemy

from application import db

class DeviceOnly(db.Model):
    __tablename__ = 'device_only'

    id = db.Column(db.BigInteger, primary_key=True)
    device_name = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    model = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    manufacture = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    rank = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    number = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    date = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
    member_id = db.Column(db.Integer, nullable=False)
